<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>全局命名空间</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="userlandnaming.html">用户空间命名指南</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="userlandnaming.rules.html">规则</a></div>
 <div class="up"><a href="userlandnaming.html">用户空间命名指南</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="userlandnaming.globalnamespace" class="section">
  <h2 class="title">全局命名空间</h2>
  <p class="para">
   以下代码结构会进入全局命名空间：
  </p>

  <ul class="itemizedlist">
   <li class="listitem"><p class="para">functions（函数）</p></li>
   <li class="listitem"><p class="para">classes（类）</p></li>
   <li class="listitem"><p class="para">interfaces（接口）</p></li>
   <li class="listitem"><p class="para">constants（常量，并非类常量）</p></li>
   <li class="listitem">
    <p class="para">在函数／方法之外定义的变量</p>
   </li>
  </ul>
 </div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="userlandnaming.html">用户空间命名指南</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="userlandnaming.rules.html">规则</a></div>
 <div class="up"><a href="userlandnaming.html">用户空间命名指南</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
